#include<stdio.h>
#include<time.h>


void Prntf(int sum)
{
    long long timestamp = time(NULL);
    printf("timestamp: %lld, result = %d\n",timestamp,sum);
}

int AddToVal(int from,int to)
{
    int sum = 0;
    int i = 0;
    for(i = from; i <= to; i++)
    {
        sum += i;
    }
    return sum;
}

int main()
{
    int sum = AddToVal(0,100);
    Prntf(sum);
    return 0;
}
